package charatr03.example.example;
class  Student14 {
    private String name;
    private int age;
    static  String school="A大学";
    public Student14(String name,int age){
        this.name= name;
        this.age = age;
    }
    public void info(){
        System.out.println("姓名："+this.name+",年龄:"+this.age+",学校："+school);
    }
}
public class Example14 {
    public static void main(String[] args) {
        Student13 stu1 = new Student13("张三",18);
        Student13 stu2 = new Student13("李四",19);
        Student13 stu3 = new Student13("王五",20);
        stu1.school="B大学";
        stu1.info();
        stu2.info();
        stu3.info();
    }
}

